package lab02.test25;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created by 星月 on 2017/11/2.
 */
public class Test {
    public static void main(String[] args) {
        Scanner numbers=new Scanner(System.in);
        System.out.println("please input first int:");
        int a=numbers.nextInt();
        System.out.println("please input second int:");
        int b=numbers.nextInt();
        try {
            int c=a/b;
        //System.out.println(c);
        }catch (ArithmeticException e){
        System.out.println("除数为0！！！");
        }finally {
           System.out.println("肯定会执行的语句！");
        }
    }
}
